<?php
/**
* @version		2.7
* @package		Ignite Gallery
* @copyright	Copyright (C) 2010 Matthew Thomson. All rights reserved.
* @license		GNU/GPLv2
*/
defined('_JEXEC') or die('Restricted access');
define( 'IG_BACKEND', false);

require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'defines.php');

//load the backend language file, theres only one language file for the component
$lang =& JFactory::getLanguage();
$lang->load('com_igallery', JPATH_ADMINISTRATOR);

$config = array();
$config['source'] = 'component';

$controller = JRequest::getWord('controller','igcategory');
require_once(JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php');
$controllerName = $controller.'Controller';
$controller = new $controllerName($config);

$controller->execute( JRequest::getCmd('task') );
$controller->redirect();

?>